;(() => {
  const { userAgent } = window.navigator;
  const ios = !!userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
  if (ios) {
    window.onpageshow = (event: any) => {
      if (event.persisted) {
        window.location.reload();
      }
    };
  }
})();
